<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>后台管理首页</title>
<%--    <script src="${pageContext.request.contextPath}/statics/admin/js/javascript.js"></script>--%>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/admin/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/admin/css/admin.css"/>
</head>
<body>
<div class="main-layout" id='main-layout'>
    <!--侧边栏-->
    <div class="main-layout-side">
        <div class="m-logo">
        </div>
        <ul class="layui-nav layui-nav-tree" lay-filter="leftNav">
            <li class="layui-nav-item layui-nav-itemed">
                <a href="${pageContext.request.contextPath}/admin/toWelcome.do" target="iframe" data-url="" data-id='1'
                   data-text="首页"><i class="iconfont">&#xe607;</i>首页</a>
            </li>
            <li class="layui-nav-item layui-nav-itemed">
                <a href="${pageContext.request.contextPath}/admin/userList.do" target="iframe" data-url="" data-id='1'
                   data-text="用户管理"><i class="iconfont">&#xe606;</i>用户管理</a>
            </li>
            <li class="layui-nav-item layui-nav-itemed">
                <a href="javascript:;"><i class="iconfont">&#xe60c;</i>资源管理</a>
                <dl class="layui-nav-child">
                    <dd><a href="${pageContext.request.contextPath}/admin/toResourceList.do" target="iframe" data-url=""
                           data-id='2' data-text="视听资源管理"><span
                            class="l-line"></span>视听资源管理</a>
                    </dd>
                    <dd><a href="${pageContext.request.contextPath}/admin/dictionaryList.do" target="iframe" data-url=""
                           data-id='3' data-text="词库管理"><span class="l-line"></span>词库管理</a>
                    </dd>
                </dl>
            </li>
            <li class="layui-nav-item layui-nav-itemed">
                <a href="javascript:;"><i class="iconfont">&#xe604;</i>问题管理</a>
                <dl class="layui-nav-child">
                    <dd><a href="${pageContext.request.contextPath}/admin/toFeedback.do" target="iframe" data-url=""
                           data-id='4' data-text="用户反馈"><span
                            class="l-line"></span>用户反馈</a>
                    </dd>
                    <dd><a href="${pageContext.request.contextPath}/admin/toUserHelp.do" target="iframe" data-url=""
                           data-id='5' data-text="用户帮助"><span
                            class="l-line"></span>用户帮助</a>
                    </dd>
                </dl>
            </li>
            <li class="layui-nav-item layui-nav-itemed">
                <a href="${pageContext.request.contextPath}/admin/toExerciseList.do" target="iframe" data-url=""
                   data-id='1'
                   data-text="题库管理"><i class="iconfont">&#xe608;</i>题库管理</a>
            </li>
        </ul>
    </div>
    <!--右侧内容-->
    <div class="main-layout-container">
        <!--头部-->
        <div class="main-layout-header">
            <div class="menu-btn" id="hideBtn">
                <a href="javascript:;">
                    <span class="iconfont" onclick="change()">&#xe60e;</span>
                </a>
            </div>
            <ul class="layui-nav" lay-filter="rightNav">
                <li class="layui-inline"><a>欢迎您&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
                <li class="layui-inline"><a
                        style="color: red">${sessionScope.adminInfo.name}&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
                <li class="layui-nav-item"><a href="${pageContext.request.contextPath}/admin/logout.do"
                                              style="color: black"><b>退出</b></a></li>
            </ul>
        </div>
        <!--主体内容-->
        <div class="main-layout-body">
            <iframe src="${pageContext.request.contextPath}/admin/toWelcome.do" id="main-iframe"
                    width="100%" height="100%" name="iframe" scrolling="auto" class="iframe"
                    framborder="0"></iframe>
        </div>
    </div>
    <!--遮罩-->
    <div class="main-mask" onclick="removeClass()"></div>
</div>
<script src="${pageContext.request.contextPath}/statics/admin/layui/layui.js" type="text/javascript"
        charset="utf-8"></script>
<script src="${pageContext.request.contextPath}/statics/admin/js/common.js" type="text/javascript"
        charset="utf-8"></script>
<script src="${pageContext.request.contextPath}/statics/admin/js/main.js" type="text/javascript"
        charset="utf-8"></script>
</body>
</html>
